﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="listProfiles.aspx.cs" Inherits="administration_listProfiles" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Pymes Consulting Bolivia</title>
    <script src="common/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8" src="common/js/menu.js"></script>
    <link rel="Stylesheet" type="text/css" href="common/css/menu.css" />
    <link rel="shortcut icon" href="common/img/logoadmin.ico" />
</head>
<body>
    <div>
        <form id="form1" runat="server">
            <div id="mainTable" class="content">
                <asp:Label ID="lblMenu" runat="server"></asp:Label>
                <div class="right">
                    <div class="welcome1">
                        <div class="welcome2">
                            <div class="profileMainDiv">
                                <table class="profileTitleTable">
                                    <tbody>
                                        <tr>
                                            <td>Administracion de Perfiles</td>
                                        </tr>
                                    </tbody>
                                </table>
                                <table class="profileTable">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblRole" runat="server" Text="Rol:"></asp:Label>
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="cbRole" CssClass="combo" runat="server" DataSourceID="ODSRole" DataTextField="NAME" DataValueField="ID" AutoPostBack="True" onselectedindexchanged="cbRole_SelectedIndexChanged">                                    
                                                </asp:DropDownList>
                                                <asp:ObjectDataSource ID="ODSRole" runat="server" SelectMethod="SeeAllTheRecords" TypeName="clsRole"></asp:ObjectDataSource>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblProfiles" runat="server" Text="Construir perfil:"></asp:Label>
                                            </td>
                                            <td>
                                                <fieldset class="profileFieldset" title="Search">
                                                    <legend>Programas</legend>
                                                    <asp:ListBox ID="listboxPrograms" CssClass="listbox" runat="server" AutoPostBack="True" DataSourceID="ODSPrograms" DataTextField="NAME" DataValueField="ID"></asp:ListBox>
                                                    <asp:ObjectDataSource ID="ODSPrograms" runat="server" SelectMethod="SeeAllTheRecords" TypeName="clsProgram">
                                                    </asp:ObjectDataSource>
                                                </fieldset>
                                            </td>
                                            <td>
                                                <table>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAdd" runat="server" Text="Agregar" onclick="btnAdd_Click" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnRemove" runat="server" Text="Quitar" onclick="btnRemove_Click" />
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                            <td>
                                                <fieldset class="profileFieldset" title="Search">
                                                    <legend>Perfil</legend>
                                                    <asp:ListBox ID="listboxProfiles" CssClass="listbox" runat="server" AutoPostBack="True" DataTextField="NAMEPROGRAM" DataValueField="ID" DataSourceID="ODSConsultProfileID"></asp:ListBox>
                                                </fieldset>
                                                <asp:ObjectDataSource ID="ODSConsultProfileID" runat="server" SelectMethod="ConsultProgramIDROLE" TypeName="clsProfile">
                                                    <SelectParameters>
                                                        <asp:ControlParameter ControlID="cbRole" Name="idRole" PropertyName="SelectedValue" Type="String" DefaultValue="1" />
                                                    </SelectParameters>
                                                </asp:ObjectDataSource>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td></td>
                                            <td colspan="2">
                                                <asp:Label ID="lblMessage" runat="server"> </asp:Label>
                                            </td>
                                            <td></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>         
    </div>    
</body>
</html>
